<include file="Common/common" />
<?php 
	$statusArr = array('0'=>'正在进行','1'=>'完成'); 
	$winloseArr = array('0'=>'输','1'=>'赢');
	$typeArr = array('1'=>'重庆时时彩');
	$pageArr = array('0'=>'总和','1'=>'第一球','2'=>'第二球','3'=>'第三球','4'=>'第四球','5'=>'第五球');
	$ballArr = array('0'=>'总和','1'=>'第一球','2'=>'第二球','3'=>'第三球','4'=>'第四球','5'=>'第五球');
	$whichArr = array('0'=>'大','1'=>'小','2'=>'单','3'=>'双');
?>
<body>
	<div class="layui-tab-item layui-show">
		<div class="layui-main">
			<br>
			<form class="layui-form" action="{:U('/admin.php/Order/order')}" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label">搜索</label>
					<div class="layui-input-inline" id="div-nickname">
						<input type="text" class="layui-input" id="searchtime" name="searchtime" placeholder="年-月-日">
						<!-- <input type="text" placeholder="请输入用户账号" name="account" lay-verify="required"  class="layui-input" > -->
					</div>


					<div class="layui-input-inline">
						<button class="layui-btn" title="搜索" ><i class="layui-icon">&#xe615;</i></button>
					</div>
				</div>
			</form>
			<br>
			<div style="overflow-x: auto;">
				<table class="layui-table" >
					<thead>
							<tr>
								<th>编号</th>
								<th>用户账号/真实姓名</th>
								<th>联系电话</th>
								<th>投注类型</th>
								<th>投注期数</th>
								<th>投注详情</th>
								<th>开奖号码</th>
								<th>申请时间</th>
								<th>状态</th>
								<th>输赢</th>
							</tr> 
						</thead>
						<tbody>
							<foreach name="applytaskList" item="vo">
								<tr>
									<td>{$vo['id']}</td>
									<td>{$vo['userInfo']['account']}/{$vo['userInfo']['truename']}</td>
									<td>{$vo['userInfo']['phone']}</td>
									<td>{$typeArr[$vo['type']]}</td>
									<td>{$vo['code']}{$vo['codenum']}</td>
									<td>{$pageArr[$vo['guessInfo'][0]]} - {$ballArr[$vo['guessInfo'][1]]} - {$whichArr[$vo['guessInfo'][2]]}</td>
									<td>{$vo['opencode']}</td>
									<td><?php if(!empty($vo['createtime'])){echo date('Y-m-d H:i:s',$vo['createtime']); } ?></td>
									<td>{$statusArr[$vo['status']]}</td>
									<td>{$winloseArr[$vo['winlose']]}</td>
								</tr>
							</foreach>
						</tbody>
				</table>
			</div>
			<div class="green-black">{$page}</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	layui.use('laydate', function(){
  		var laydate = layui.laydate;

        laydate.render({
    		elem: '#searchtime'
  		});
    });
</script>